<template>
  <d2-container>
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="审批规则设置" name="first">
        <v-examine_management></v-examine_management>
      </el-tab-pane>
      <!-- <el-tab-pane label="审批历史" name="second">
        <v-examine_history></v-examine_history>
      </el-tab-pane> -->
      <!-- <el-tab-pane label="审批操作" name="third">
        <v-examine_operation></v-examine_operation>
      </el-tab-pane> -->
    </el-tabs>
  </d2-container>
</template>
<script>
import examine_management from './components/examine_Management'
import examine_history from './components/examine_history'
import examine_operation from './components/examine_operation'
export default {
  data() {
    return {
      activeName: 'first',
      ids:this.$route.query.id,
    }
  },
  components: {
    'v-examine_management': examine_management,
    'v-examine_history': examine_history,
    'v-examine_operation': examine_operation,
  },
  created() {
    if(this.ids!=undefined){
      this.activeName="second"
    }
  },
  methods: {
    handleClick(tab, event) {
      // console.log(tab, event)
    },
  },
}
</script>